<?php

return array(
	'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
	'name'=>'Мой сайт',

	'preload'=>array('log'),

	'import'=>array(
		'application.models.*',
		'application.components.*',
	),

	'modules'=>array(
		'gii'=>array(
			'class'=>'system.gii.GiiModule',
			'password'=>'myyiigii',
			'ipFilters'=>array('127.0.0.1','::1'),
		),
	),

	'components'=>array(
		'user'=>array(
			'allowAutoLogin'=>true,
            'loginUrl' => '/',
		),

        'authManager'=>array(
            'class'=>'CPhpAuthManager',
        ),

		'urlManager'=>array(
			'urlFormat'=>'path',
            'showScriptName'=>false,
            'rules' => array(
                'admin' => '/admin/index',
                'feedback' => '/admin/feedback',
                'post' => '/post/index',
                'category' => '/category/index',
            ),
		),

		'db'=>array(
            'class'=>'CDbConnection',
			'connectionString' => 'mysql:host=localhost;dbname=mysite',
			'emulatePrepare' => true,
			'username' => 'root',
			'password' => '123',
			'charset' => 'utf8',
		),

        'live'=>array(
            'class'=>'CDbConnection',
            'connectionString' => 'mysql:host=mysql.hostinger.ru;dbname=u115546116_site',
            'emulatePrepare' => true,
            'username' => 'u115546116_admin',
            'password' => 'includeiostream',
            'charset' => 'utf8',
        ),

		'errorHandler'=>array(
			'errorAction'=>'site/error',
		),
		'log'=>array(
			'class'=>'CLogRouter',
			'routes'=>array(
				array(
					'class'=>'CFileLogRoute',
					'levels'=>'error, warning',
				),
			),
		),
	),

	'params'=>array(
		'adminEmail'=>'webmaster@example.com',
	),
);